package com.campus.backend.bean.feedback;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 反馈类型新增/更新参数
 *
 * @author System
 * @since 2025-01-27
 */
@Data
@ApiModel(description = "反馈类型新增/更新参数")
public class FeedbackTypeBean {

    @ApiModelProperty("反馈类型ID（更新时必填）")
    private Integer id;

    @ApiModelProperty(value = "反馈类型名称", required = true)
    @NotBlank(message = "反馈类型名称不能为空")
    private String name;

    @ApiModelProperty(value = "反馈类型编码", required = true)
    @NotBlank(message = "反馈类型编码不能为空")
    private String code;

    @ApiModelProperty("类型描述")
    private String description;

    @ApiModelProperty(value = "适用用户类型：1-顾客，2-商户，3-配送员", required = true)
    @NotNull(message = "适用用户类型不能为空")
    private Integer userType;

    @ApiModelProperty("排序序号")
    private Integer sortOrder;

    @ApiModelProperty("状态：0-禁用，1-启用")
    private Integer status;
}